from orm.persistence.UserUtil import *
from orm.service.UserService import UserService


class UserServiceImpl(UserService):

    def userLogin(self, userId, password):
        return userLogin(userId, password)

    def userRegister(self, userId, userName, password, phone_number, dormitoryId):
        return userRegister(userId, userName, password, phone_number, dormitoryId)

    def userUpdate(self, userId, userName, password, phone_number, dormitoryId):
        return userUpdate(userId, userName, password, phone_number, dormitoryId)

    def userSearchById(self, Id):
        return userSearchById(Id)

    def userSearchByUserName(self, userName):
        return userSearchByUserName(userName)

    def userDeleteById(self, Id):
        return userDeleteByUserId(Id)

